#ifndef BIRD_H
#define BIRD_H

#include <QGraphicsPixmapItem>
#include <QObject>
#include <QWidget>
#include <QPixmap>
#include <QList>
class bird : public QGraphicsPixmapItem
{
public:
    bird();
    qreal L,R,Sy;
    QList<QPixmap> birdAction;
    bool dir=1;//向右
    int cnt=0;
    bird(qreal l, qreal r, qreal sy, QPixmap p1, QPixmap p2)
    {
        L=l;
        R=r;
        Sy=sy;
        birdAction.append(p1);
        birdAction.append(p2);
    }
    QRectF boundingRectF(){
          return QRectF(this->pos().x(),this->pos().y(),this->boundingRect().width(),this->boundingRect().height());
    }
};

#endif // BIRD_H
